<%-- 
    Document   : UserPopup
    Created on : Aug 27, 2013, 12:05:27 PM
    Author     : ChauAnh
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
    <head>
        <style type="text/css">
            a.text-nomarl-reb:link {text-decoration:none;}
            a.text-nomarl-reb:visited {text-decoration:none;}
            a.text-nomarl-reb:hover {text-decoration:underline;}           
        </style>          
    </head>
    <body>
        <%
            if (request.getSession().getAttribute("login") == null) {
                response.sendRedirect("index.jsp");
            } else {

        %>
        <table style="width: 100%" border="0">
            <tr>
                <td colspan="2" align="left" style="background-color: #FFF3DE; height: 30px; padding-left: 10px" class="text-nomarl-title-reb">
                    <fmt:message key="ppuser.title"/>
                </td>
            </tr>
            <tr>
                <td rowspan="5" align="center" style="width: 60px; padding-right: 5px">
                    <%
                        out.println("<img src= 'avatar/" + request.getSession().getAttribute("avatar").toString() + "' width='105px' height='100px' border='0' alt='User'/>");
                    %> 
                    <br>
                    <input type="button"  onclick="window.location.href = 'uploadImage.jsp';" value=" <fmt:message key='ppuser.changephotos'/> " class="gwt-Button" style="margin-top: 3px"/>
                </td>
            </tr>
            <tr>
                <td class="text-nomarl-black" style="font-weight: bold; height: 10px" align="left">
                    <%
                        out.println(request.getSession().getAttribute("fullName").toString());
                    %>
                </td>
            </tr>
            <tr>
                <td class="text-nomarl-black" align="left" style="font-style: italic; height: 40px; padding-bottom: 30px">
                    <%
                        out.println(request.getSession().getAttribute("login").toString());
                    %>
                </td>
            </tr>
            <tr>
                <td align="left" style="height: 25px">                    
                    <a href="Change_Password_Candidate.jsp" class="text-nomarl-reb"><fmt:message key="ppuser.changepassword"/></a>
                </td>
            </tr>
            <tr>
                <td align="left" style="height: 25px">
                    <a href="updateCandidateProfile" class="text-nomarl-reb"><fmt:message key="ppuser.viewprofile"/></a>
                </td> 
            </tr>
            <tr>
                <td align="left" style="padding-top: 10px; padding-left: 5px">
                    <input type="button" onclick="window.location.href = 'Serv_ViewCharges?PaymentRegister=true';"  value="<fmt:message key='ppuser.payment'/>" class="gwt-Button"/>                    
                </td>
                <td align="right" style="padding-top: 10px; padding-right: 5px">
                    <input type="button" onclick="window.location.href = 'Logout';" value="<fmt:message key='ppuser.logout'/>" class="gwt-Button"/>
                </td>
            </tr>
        </table>
        <%
            }
        %>
    </body>
</html>
